package com.ziyun.erp.modules.goods.service;

import com.baomidou.mybatisplus.service.IService;
import com.ziyun.erp.modules.goods.entity.GoodsEntity;
import io.renren.common.utils.PageUtils;
import com.ziyun.erp.modules.goods.entity.GoodsProductEntity;

import java.util.List;
import java.util.Map;

/**
 * 产品表
 *
 * @author xueqz
 * @email 
 * @date 2018-08-21 08:46:29
 */
public interface GoodsProductService extends IService<GoodsProductEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void setOptionByGoodsProductList(List<GoodsProductEntity> goodsProductList);

    void setCraftOptionByGoodsProductList(List<GoodsProductEntity> goodsProductList);

    void setCraftValues(GoodsEntity goodsProperty, GoodsProductEntity goodsProductEntity);

    List<GoodsProductEntity> selectProductProperties(Map map);

    String getGoodsTypeByProductId(Long productId);

    Boolean getMaterialType(Long productId);

    List<GoodsProductEntity> selectByGoodsId(Long goodsId);

    GoodsEntity getGoodsAndProduct(Long goodsId);
}

